﻿using System;
using System.Web.UI.WebControls;
using ATSBLL;

public partial class ViewbyTProduct_TTestStatistic : System.Web.UI.Page
{
    private TTest test;

    public ViewbyTProduct_TTestStatistic()
    {
        test = new TTest();
    }

    protected void Page_Load(object sender, EventArgs e)
    {

    }

    public void BindTest_Q()
    {
        DateTime dt1 = DateTime.Parse(this.TextBox1.Value.Trim());
        DateTime dt2 = DateTime.Parse(this.TextBox2.Value.Trim());
        this.GridView1.DataSource = test.GetTest_QbyDT(dt1, dt2);
        GridView1.DataBind();
    }

    protected void Button1_Click(object sender, EventArgs e)
    {
        BindTest_Q();
    }

    protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        this.GridView1.PageIndex = e.NewPageIndex;
        BindTest_Q();
    }
}
